package com.yy.wga.user.service.events;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * description
 *
 * @author <a href="mailto:ludezh@dingtalk.com"> ludezh </a>
 * @version 1.0.0   2020/6/5,18:15
 * @since 1.0.0     2020/6/5,18:15
 */
@Getter
@Setter
public class UserGradeUpEvent extends ApplicationEvent {
    /**
     * 上级用户id
     */
    private Long parentUserId;
    /**
     * appKey
     */
    private String appKey;
    /**
     * 触发事件的升级等级
     */
    private Integer upGrade;
    /**
     * 触发事件的升级等级级别
     */
    private Integer upLevel;

    /**
     * 升级方式 1.达到升级条件 2.购买直通车礼包
     */
    private Integer type;

    public UserGradeUpEvent(Object source) {
        super(source);
    }
}
